package com.example.fiction.db;

import org.litepal.crud.LitePalSupport;

import java.util.List;

/**
 * 书架
 * author: 姚鸿杰
 * time: 2019/3/24 10:02
 **/
public class BooksDBHelper extends LitePalSupport {

    private int id;
    private String bookId;
    private String bookName;        //书名
    private String author;          //作者
    private String cover;           //封面
    private int chapter;            //记录阅读的章节
    private int charIndex;          //记录阅读到章节的第几个字符
    private String progress;         //总进度

    private String chapterList;     //存放章节，存已json格式

    public BooksDBHelper() {
    }

    public BooksDBHelper(String bookId, String bookName, String author, String cover, int chapter, int charIndex, String progress, String chapterList) {
        this.bookId = bookId;
        this.bookName = bookName;
        this.author = author;
        this.cover = cover;
        this.chapter = chapter;
        this.charIndex = charIndex;
        this.progress = progress;
        this.chapterList = chapterList;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public int getChapter() {
        return chapter;
    }

    public void setChapter(int chapter) {
        this.chapter = chapter;
    }

    public int getCharIndex() {
        return charIndex;
    }

    public void setCharIndex(int charIndex) {
        this.charIndex = charIndex;
    }

    public String getProgress() {
        return progress;
    }

    public void setProgress(String progress) {
        this.progress = progress;
    }

    public String getChapterList() {
        return chapterList;
    }

    public void setChapterList(String chapterList) {
        this.chapterList = chapterList;
    }
}
